package com.ruoyi.commissionrecord.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 返佣记录对象 commission_record
 * 
 * @author ruoyi
 * @date 2025-11-20
 */
public class CommissionRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 订单id */
    @Excel(name = "订单id")
    private Long orderId;

    /** 提供佣金用户 */
    @Excel(name = "提供佣金用户")
    private Long fromUserId;

    /** 获得佣金用户 */
    @Excel(name = "获得佣金用户")
    private Long toUserId;

    /** 返佣层级 */
    @Excel(name = "返佣层级")
    private Long level;

    /** 是否团长奖励 */
    @Excel(name = "是否团长奖励")
    private Long isTeamLeaderBonus;

    /** 返佣金额 */
    @Excel(name = "返佣金额")
    private BigDecimal amount;

    /** 当前返佣比例 */
    @Excel(name = "当前返佣比例")
    private BigDecimal rate;

    /** 返佣类型 */
    @Excel(name = "返佣类型")
    private Long commissionType;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    public void setFromUserId(Long fromUserId) 
    {
        this.fromUserId = fromUserId;
    }

    public Long getFromUserId() 
    {
        return fromUserId;
    }

    public void setToUserId(Long toUserId) 
    {
        this.toUserId = toUserId;
    }

    public Long getToUserId() 
    {
        return toUserId;
    }

    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }

    public void setIsTeamLeaderBonus(Long isTeamLeaderBonus) 
    {
        this.isTeamLeaderBonus = isTeamLeaderBonus;
    }

    public Long getIsTeamLeaderBonus() 
    {
        return isTeamLeaderBonus;
    }

    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }

    public void setRate(BigDecimal rate) 
    {
        this.rate = rate;
    }

    public BigDecimal getRate() 
    {
        return rate;
    }

    public void setCommissionType(Long commissionType) 
    {
        this.commissionType = commissionType;
    }

    public Long getCommissionType() 
    {
        return commissionType;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("fromUserId", getFromUserId())
            .append("toUserId", getToUserId())
            .append("level", getLevel())
            .append("isTeamLeaderBonus", getIsTeamLeaderBonus())
            .append("amount", getAmount())
            .append("rate", getRate())
            .append("commissionType", getCommissionType())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .toString();
    }
}
